<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/7/25
 * Time: 上午6:53
 */
namespace PddWechat\Models\Share\Data;

use PddWechat\Models\Share\Dao\SharePosDao;
use PddWechat\Models\Share\DataObject\SharePosDo;

class SharePosData
{
    public function __construct()
    {
        $this->sharePosDao = new SharePosDao();
    }

    public function insert(SharePosDo $sharePosDo)
    {
        return $this->sharePosDao->insert($sharePosDo);
    }

    public function selectShareInfoByInvIdAndRecomId(string $invateOpenId,string $recommendOpenId)
    {
        return $this->sharePosDao->selectShareInfoByInvIdAndRecomId($invateOpenId,$recommendOpenId);
    }
}